﻿Imports PTIC_Util.GestionCalculs

''' <summary>
''' Interface représentant les opérations possibles sur un traitement
''' </summary>
''' <remarks></remarks>
Public Interface ITraitement2

#Region "Propriétés"
#Region "Univers"
    ''' <summary>
    ''' Univers de travail
    ''' </summary>
    ''' <remarks></remarks>
    Property univers() As UniversBDD
#End Region
#Region "Caractéristiques physiques"
    ''' <summary>
    ''' Nom
    ''' </summary>
    ''' <remarks></remarks>
    ReadOnly Property nom() As String
    ''' <summary>
    ''' Nom temporaire utilisé das les requêtes
    ''' </summary>
    ''' <remarks></remarks>
    Property tempNom() As String
    ''' <summary>
    ''' Nom de la table associée au traitement dans la base de données
    ''' </summary>
    ''' <remarks></remarks>
    Property nomTableDansBDD() As String
    ''' <summary>
    ''' Nom complet du fichier physique associé au traitement
    ''' </summary>
    ''' <remarks></remarks>
    Property nomCompletFichier() As Cla_NomFichier
    ''' <summary>
    ''' Connection associée au traitement pour les accès à la base de données
    ''' </summary>
    ''' <remarks></remarks>
    Property connection() As OleDb.OleDbConnection
#End Region
#Region "Champs en sortie"
    ''' <summary>
    ''' Liste des champs disponibles en sortie du traitement
    ''' </summary>
    ''' <remarks></remarks>
    ReadOnly Property ListeChampsSortie() As Dictionary(Of String, Correspondance)
#End Region
#Region "Etat de calcul"
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    ReadOnly Property etatExecBDD() As EtatCalcul
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    ReadOnly Property etatExecDataTable() As EtatCalcul
#End Region
#End Region

#Region "Méthodes d'exécution"
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Function execute_DataTable(ByVal stockageBDDlocale As Boolean) As DataTable
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Function execute_DataTableToDgv(ByVal stockageBDDlocale As Boolean, _
                                           ByVal dgv As System.Windows.Forms.DataGridView) As DataTable
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Function execute_BDD() As String
#End Region
#Region "Méthodes de gestion des dépendances"
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Sub addDependance(ByVal dependance As Correspondance)
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Sub onDependanceChanged(ByVal sender As Object, ByVal e As GenerateCorrespEventArgs)
#End Region

#Region "Traitement des évènements externes"
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Function onAjoutChampsSortie()
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Function onSuppressionChampsSortie()
    ''' <summary>
    ''' 
    ''' </summary>
    ''' <remarks></remarks>
    Function onModificationChampsSortie()
#End Region
#Region "Evènements générés"
    Event EtatCalculDataTableAChange As EventHandler
    Event EtatCalculBDDAchange As EventHandler
    Event HasBeenInvalidated As EventHandler
#End Region

End Interface